package com.atguigu.spzx.cloud.order;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
//复杂扫描spring组件： Controller Service Repository Comonent  Configuration Bean....
@ComponentScan(basePackages = {"com.atguigu.spzx.cloud"})

//负责扫描@FeignClient注解的接口 创建对象注入到容器中
@EnableFeignClients(basePackages = {"com.atguigu.spzx.cloud.feign.api.client"})
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class,args);
    }
}
